#ifndef AQUAM8628_H
#define AQUAM8628_H

#include "switch.h"
#include <QWidget>
#include <QVBoxLayout>

class Aquam8628 : public Switch
{
    Q_OBJECT
public:
    Aquam8628(QWidget *parent);
    void InitSwtichName(QString name);
    void InitSwitchPorts(QStringList &portnamelist);
    void updatePortStat(int port_index, int port_stat, int duplex_stat);
    void updatePortsName(QStringList &portnamelist);
    int portCount();
private:
    QLabel *switch_name_=nullptr;
private:
    QList<QLabel*> port_list_;
    QList<QLabel*> port_name_list_;
    QWidget *back_widget_=nullptr;
    QVBoxLayout *main_layout_=nullptr;
};

#endif // AQUAM8628_H
